//
//  PCPhotoModel.m
//  PhotoCircle
//
//  Created by GL on 15/12/20.
//  Copyright © 2015年 wujungao. All rights reserved.
//

#import "PCPhotoModel.h"

#define KEY_Photo_UUID           @"uuid"
#define KEY_Photo_Title          @"title"
#define KEY_Photo_Image          @"image"


@implementation PCPhotoModel

- (instancetype)initWithDictionary:(NSDictionary *)dict
{
    self = [super initWithDictionary:dict];
    if (self) {
        
        if (dict[KEY_Photo_Image]!=[NSNull null]) {
            _pImgUrl = dict[KEY_Photo_Image];
        }
        if (dict[KEY_Photo_Title]!=[NSNull null]) {
            _pTitle = dict[KEY_Photo_Title];
        }
        if (dict[KEY_Photo_UUID]!=[NSNull null]) {
            _pUUID = dict[KEY_Photo_UUID];
        }
    }
    return self;
}


@end
